Jenkins Setup
Learn about setting up Jenkins.
We'll cover the following
The setup process for a new Jenkins installation is simple. It includes an option to select plugins and create an administrative user.
Step 1: Get the administrator key#
Open Jenkins:
- Run Jenkins.
- Open any browser.
- Go to “http://localhost:8080.”
This is the page we’ll see when accessing Jenkins for the first time after installation. Jenkins is preinstalled to the LVM and is ready for setup.
- Open a terminal window.
- Type in the following:
$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword. - Copy the password to the clipboard.
Commands
Command / Parameter | Description |
| This runs the command as root. |
| This prints the contents of a file to stdout. |
| This is the path to the generated temporary administrator password. |
When Jenkins is installed, a temporary admin password is generated and placed in the initialAdminPassword file. Highlight and copy/paste this password from the terminal window into the password field to complete the installation of Jenkins.
- Paste the password into the “password” field in the browser.
- Click “Continue.”
Step 2: Install Jenkins#
Click the “Install suggested plugins” option.
Step 3: Create an administrative user#
The following are the steps to create an administrative account:
- Enter “devops” in the “Username” field.
- Enter “katas” in the “Password” field.
- Enter “DevOps Katas” in the “Full Name” field.
- Enter “devops@katas.com” in the “E-mail Address” field.
- Click “Save and Finish.”
- Click “Start using Jenkins.”
Jenkins is now ready to use.
Gogs Installation